package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"shops/controllers"
)

func init() {
	beego.Router("/add", &controllers.ShopController{}, "POST:Add;OPTIONS:Add")
	beego.Router("/list", &controllers.ShopController{}, "GET:List;OPTIONS:List")
	beego.Router("/updates", &controllers.ShopController{}, "GET:Update;POST:Update;OPTIONS:List")
	beego.Router("/login", &controllers.UserController{}, "POST:Login;OPTIONS:Login")
}
